package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * @description: ToDo
 * @author: marin
 * @time: 2020/7/2 11:03
 */
public class FileIO {
    public static void main(String[] args) {
        try {
            FileOutputStream fs = new FileOutputStream("./hello.txt",true);
            fs.write("\r\n".getBytes());
            fs.write("天朗气清，惠风和畅".getBytes());
            fs.write("\r\n".getBytes());
            byte[] arr = {'a','n','c','u','t','e'};
            fs.write(arr);
            fs.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
